//
//  NSString+Format.h
//  STTools
//
//  Created by stoneobs on 16/10/8.
//  Copyright © 2016年 stoneobs. All rights reserved.
//  这是字符串格式判断，比如需要判断是否中文，是否纯数字，正则表达式，动态算高度，等

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface NSString (STTools_Formatter)
//过滤emoji
- (NSString *)stoneobs_fun_st_disable_emojiSrting;
//183****1887
- (NSString*)stoneobs_fun_st_safetyPhone;
//st***@icloud.com
- (NSString*)stoneobs_fun_st_safetyEmail;
// 判断是否为电话号码
- (BOOL)stoneobs_fun_st_isValidatePhoneNumber;
//判断3～20位数字
- (BOOL)stoneobs_fun_st_isValidateTelephoneNumber;
// 判断是否为邮箱
- (BOOL)stoneobs_fun_st_isValidateEmail;
// 判断是否为url
- (BOOL)stoneobs_fun_st_isValidateUrl;
//是否 8-16 数字和字符串密码
- (BOOL)stoneobs_fun_st_isValidatePwd;
//空字符串
- (BOOL)stoneobs_fun_st_st_isBlank;
//是否中文
- (BOOL)stoneobs_fun_st_isChinese;
//是否合法身份证
- (BOOL)stoneobs_fun_st_verifyIDCardNumber;
//是否纯数字
- (BOOL)stoneobs_fun_st_isPureNumandCharacters;
//是否含特殊字符
- (BOOL)stoneobs_fun_st_isIncludeSpecialCharacters;
//合适的imageURl
- (NSURL*)stoneobs_fun_st_safeImageUrl;
//2位小数
- (NSString*)stoneobs_fun_st_2float;
- (NSAttributedString*)stoneobs_fun_st_convertAttributeStringWithKeyWord:(NSString *)keyword
                                               attributes:(NSDictionary *)optins;
- (NSAttributedString *)stoneobs_fun_st_convertAttributeStringWithKeyWords:(NSArray *)keywords
                                                attributes:(NSArray<NSDictionary *> *)options;

- (CGFloat)stoneobs_fun_st_heigthWithwidth:(CGFloat)width font:(CGFloat)font;
- (CGFloat)stoneobs_fun_st_widthWithheight:(CGFloat)height font:(CGFloat)font;
+ (void)stoneobs_fun_lableAutoAdjustWitdhWithLabel:(UILabel*)lable;
+ (void)stoneobs_fun_lableAutoAdjustheightWithLabel:(UILabel*)lable;
@end
